<template>
  <div>
    <HeaderTop>
      <span
        class="header_heart"
        slot="left"
      >
        <i class="icon icon-heart-empty"></i>
      </span>
      <span
        class="header_text"
        slot="center"
      >
        <p>广场</p>
      </span>
      <span
        class="header_th_large"
        slot="right"
      >
        <i class="icon icon-th-large"></i>
      </span>
    </HeaderTop>
    <HeaderBottom>
      <span
        class="header_heart_bottom"
        @click="searchOther()"
        slot="left"
      >
        <i class="icon icon-search"></i>
      </span>
      <span
        class="header_text_bottom"
        slot="center"
      >
        <p>肖战</p>
      </span>
      <span
        class="header_chat_line"
        slot="right"
      >
        <i class="icon icon-chat-line"></i>
      </span>
    </HeaderBottom>
    <!-- 轮播 -->
    <div id="lunbo">
      <div
        class="swiper-container"
        id="swiper-container2"
      >
        <div class="swiper-wrapper">
          <div class="swiper-slide img"><img
              src="./images/1.png"
              alt=""
            ></div>
          <div class="swiper-slide img"><img
              src="./images/2.png"
              alt=""
            > </div>
          <div class="swiper-slide img"><img
              src="./images/3.png"
              alt=""
            > </div>
          <div class="swiper-slide img"><img
              src="./images/4.png"
              alt=""
            > </div>
          <div class="swiper-slide img"><img
              src="./images/5.png"
              alt=""
            > </div>
        </div>
        <!-- 导航条-->
        <div class="swiper-pagination2"></div>
      </div>
    </div>
    <div id="star">
      <div class="content">
        <div>
          <i class="iconfont icon-manhuadongman"></i>
        </div>
        <p>星耀榜</p>
        <p class="p">肖战人气榜NO...</p>
      </div>
      <div class="content">
        <div>
          <i class="iconfont icon-tv-red"></i>
        </div>
        <p>明星驾到</p>
        <p class="p">宋秩19：00来...</p>
      </div>
      <div class="content">
        <div>
          <i class="iconfont icon-bofang"></i>
        </div>
        <p>福利社</p>
        <p class="p">热门明星 肖战</p>
      </div>
      <div class="content">
        <div>
          <i class="iconfont icon-icon_zhuangban"></i>
        </div>
        <p>饭创视频</p>
        <p class="p">来看神仙剪辑</p>
      </div>
    </div>
    <!--  热门话题     -->
    <div id="huati">
      <div>
        <p><strong>热门话题</strong></p>
      </div>
      <div class="remen">
        <img
          src="./images/13.png"
          alt=""
        >
        <div class="text">
          <p>doki人气舞台阵容</p>
        </div>
      </div>

      <div class="remen">
        <img
          src="./images/12.png"
          alt=""
        >
        <div class="text">
          <p>想和_一起过平安夜</p>
        </div>
      </div>

      <div class="remen">
        <img
          src="./images/11.png"
          alt=""
        >
        <div class="text">
          <p>爱豆微醺照大赛</p>
        </div>
      </div>

      <div class="remen">
        <img
          src="./images/13.png"
          alt=""
        >
        <div class="text">
          <p>星星泡饭</p>
        </div>
      </div>
    </div>
    <!-- 兴趣中心 -->
    <div id="interest-center">
      <div class="nav">
        <p><strong>兴趣中心</strong></p>
      </div>
      <div id="squre">
        <div>
          <div id="picture">
            <i class="iconfont icon-chuyin"></i>
          </div>
          <div id="game">
            <p><strong>斗罗大陆·小游戏</strong></p>
            <p>斗罗狂欢周 多重好礼限时领</p>
          </div>
        </div>
      </div>

      <div>
        <div class="title">
          <p><strong>爱玩游戏</strong></p>
          <p>雪鹰领主</p>
          <i class="iconfont icon-youxidongman"></i>
        </div>
        <div class="title">
          <p><strong>小游戏</strong></p>
          <p>秒玩点即玩</p>
          <i class="iconfont icon-youling"></i>
        </div>
        <div class="title">
          <p><strong>草场地商城</strong></p>
          <p>买正版周边</p>
          <i class="iconfont icon-shangcheng"></i>
        </div>
        <div class="title">
          <p><strong>守护爱豆</strong></p>
          <p>拿会员季卡</p>
          <i class="iconfont icon-xin"></i>
        </div>
        <div class="title">
          <p><strong>漫画频道</strong></p>
          <p>斗罗4更新</p>
          <i class="iconfont icon-dongman1"></i>
        </div>
        <div class="title">
          <p><strong>小知识频道</strong></p>
          <p>处世绝学</p>
          <i class="iconfont icon-book"></i>
        </div>
        <div class="title">
          <p><strong>每日新鲜事</strong></p>
          <p>短频道精选</p>
          <i class="iconfont icon-bofang"></i>
        </div>
        <div class="title">
          <p><strong>快乐赶海</strong></p>
          <p>抓鱼抓螃蟹</p>
          <i class="iconfont icon-dashujuzhengfangxing"></i>
        </div>
        <!-- 跳转到小说页面 -->
        <router-link
          to="/novel"
          class="novel"
        >
          <div class="title">
            <p><strong>小说频道</strong></p>
            <p>免费领书卷</p>
            <i class="iconfont icon-xiaoshuo"></i>
          </div>
        </router-link>
      </div>
    </div>
    <!-- 视频功能 -->
    <div id="vidoe">
      <div class="nav">
        <p>视频功能</p>
      </div>
      <div class="title1">
        <i
          v-color="red"
          class="iconfont icon-dingyue"
        ></i>
        <p>订阅</p>
      </div>
      <div class="title1">
        <i
          v-color="blue"
          class="iconfont icon-tv-red"
        ></i>
        <p>视频助手</p>
      </div>
      <div class="title1">
        <i
          v-color="pink"
          class="iconfont icon-zhuangban"
        ></i>
        <p>明星装扮</p>
      </div>
    </div>
    <div id="qita">

    </div>
  </div>
</template>

<script>
import HeaderTop from '../../components/HeaderTop/HeaderTop.vue'
import HeaderBottom from '../../components/HeaderTop/HeaderBottom.vue'
import Swiper from 'swiper'
import 'swiper/css/swiper.min.css'
export default {
  data () {
    return {
      red: 'red',
      pink: 'pink',
      yellow: 'yellow',
      blue: 'blue'
    }
  },
  methods: {
    searchOther () {
      this.$router.push({
        name: 'searchother' // 跳转到的路径名称
      })
    }
  },
  components: {
    HeaderTop,
    HeaderBottom
  },
  mounted () {
    new Swiper('#swiper-container2', {// eslint-disable-line
      pagination: {
        el: '.swiper-pagination2',
        clickable: true,
        bulletActiveClass: 'my-bullet-active'
      },
      autoplay: {
        delay: 2000,
        disableOnInteraction: false
      },
      debugger: true,
      loop: true
    })
  },
  directives: {
    color: {
      bind (el, binding) {
        el.style.color = binding.expression

        // 随机颜色
        // el.style.color = '#' + Math.random().toString(16).slice(2,8)
      }
    }
  }
}
</script>

<style scoped>
.header_heart {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10%;
  height: 50%;
}
.header_heart .icon {
  font-size: 25px;
  color: red;
}
.header_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  color: black;
  padding-top: 15px;
  margin-left: -10%;
}
.header_text p {
  font-size: 24px;
}
.header_th_large {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10%;
  height: 50%;
}
.header_search .icon {
  font-size: 24px;
}
/* 下部分导航 */
.header_heart_bottom {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10%;
  height: 50%;
}
.header_heart_bottom .icon {
  font-size: 24px;
}
.header_text_bottom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  color: black;
  padding-top: 15px;
  margin-left: -10%;
}
.header_text_bottom p {
  font-weight: bold;
}
.header_chat_line {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10%;
  height: 50%;
}
/* 轮播图 */
#lunbo {
  margin-top: 90px;
}
.nav p {
  font-weight: bold;
}
/* 星耀榜 */
#star {
  width: 100%;
  background: rgb(255, 255, 255);
  overflow: hidden;
}
#star > div {
  width: 25%;
  float: left;
}
.iconfont {
  font-size: 3.5em;
}
.content {
  text-align: center;
  color: rgb(240, 6, 142);
  margin-top: 16px;
}
.content:nth-of-type(2) {
  color: red;
}
.content:nth-of-type(3) {
  color: black;
}
.p {
  color: black;
  font-size: 0.5em;
}
/* 热门话题 */
#huati {
  width: 100%;
  margin-top: 15px;
  background: rgb(255, 255, 255);
}
#huati > p {
  padding-top: 20px;
}
.remen {
  float: left;
  width: 50%;
  background: rgb(255, 255, 255);
  box-sizing: border-box;
  overflow: hidden;
}
.text > p {
  font-size: 1em;
  float: left;
  margin-left: 10px;
  margin-top: 5%;
}
.remen > img {
  float: left;
  width: 20%;
}
/* 兴趣中心 */
#interest-center {
  width: 100%;
  background: rgb(255, 255, 255);
  overflow: hidden;
  padding-top: 10px;
}
.nav {
  margin-bottom: 5px;
}
.nav > p {
  font-size: 1.2rem;
}
#squre {
  width: 100%;
  height: 60px;
  background-color: rgb(248, 213, 213);
}
#picture {
  width: 10%;
  float: left;
  margin-left: 5px;
}
#game {
  width: 55%;
  height: 40px;
  float: left;
  margin-left: 20px;
}
#game > p {
  font-size: 1rem;
}
.title {
  width: 30%;
  margin: 5px;
  float: left;
  overflow: hidden;
  background-color: rgb(241, 205, 205);
}
.title > p {
  margin-left: 2px;
}
.title > .iconfont {
  float: right;
  font-size: 20px;
  margin: 5px;
  margin-top: -30px;
}
.icon-chuyin {
  font-size: 4em;
  color: rgb(16, 216, 16);
}
.novel {
  color: black;
}
/* 视频功能 */
/* 视频 */
#vidoe {
  width: 100%;
  background: rgb(255, 255, 255);
  overflow: hidden;
  padding-top: 10px;
  float: left;
}
.title1 {
  width: 25%;
  margin: 5px;
  float: left;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
}
.title1 > p {
  margin-left: 2px;
}
.title1 > .iconfont {
  float: right;
  font-size: 24px;
  border-right: 1px solid rgb(192, 191, 191);
  margin-top: 5px;
  margin-right: 3px;
}
/* 其他 */
#qita {
  width: 100%;
  height: 150px;
}
</style>
